package com.chlp.core.framework.utils;

/**
 * @author 陈礼鹏
 * @date 2020/1/16 17:23
 */
public class CommonCurdResultBean<T> {

	private boolean success;

	private String message;

	private String[] msgParams;

	private T object;

	private String errorCode;

	private long currentTime;

	public CommonCurdResultBean(boolean success, String message) {
		this.success = success;
		this.message = message;
		this.currentTime = System.currentTimeMillis();
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String[] getMsgParams() {
		return msgParams;
	}

	public void setMsgParams(String[] msgParams) {
		this.msgParams = msgParams;
	}

	public T getObject() {
		return object;
	}

	public void setObject(T object) {
		this.object = object;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public long getCurrentTime() {
		return currentTime;
	}

	public void setCurrentTime(long currentTime) {
		this.currentTime = currentTime;
	}
}
